package com.ihg.hiex.entity.session.task;

import com.demo2do.core.utils.Alias;

/**
 * 
 * @author downpour
 */
@Alias("SessionTaskStatus")
public enum SessionTaskType {
    
    MEETING("meeting", "会议"),
    
    OTHER("other", "其他");

    private String alias;
    
    private String description;
    
    /**
     * @param alias
     * @param description
     */
    private SessionTaskType(String alias, String description) {
        this.alias = alias;
        this.description = description;
    }
    
    /**
     * 
     * @param alias
     * @return
     */
    public static SessionTaskType aliasOf(String alias) {
        
        for(SessionTaskType type : SessionTaskType.values()) {
            if(type.getAlias().equals(alias)) {
                
                return type;
            }
        }
        return null;
    }
    
    /**
     * 
     * @return  alias
     */
    public String getAlias() {
        return alias;
    }
    
    /**
     * @return the description
     */
    public String getDescription() {
        return description;
    }
    
}
